package com.wcpdoc.exam.wang.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.math.BigDecimal;
import java.util.Date;

@TableName("exm_question")
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class QsEntity {

    @TableId(value = "ID", type = com.baomidou.mybatisplus.annotation.IdType.AUTO)
    private Integer id;


    /**
     * 类型（1：单选；2：多选；3：填空；4：判断；5：问答）
     */
    @TableField("TYPE")
    private Integer type;

    @TableField("TITLE")
    private String title;


    /**
     * 阅卷类型（1：客观题；2：主观题）
     */
    @TableField("MARK_TYPE")
    private Integer markType;

    @TableField("ANALYSIS")
    private String analysis;


    @TableField("SCORE")
    private BigDecimal score;

    @TableField("STATE")
    private Integer state;


    /**
     * 试题分类ID
     */
    @TableField("QUESTION_TYPE_ID")
    private Integer questionTypeId;

    @TableField("CREATE_USER_ID")
    private Integer createUserId;

    @TableField("UPDATE_USER_ID")
    private Integer updateUserId;

    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
